package com.ftf.tp.blog.domain.configuration.service;

import com.ftf.tp.blog.domain.article.aggregate.ArticleAgg;
import com.ftf.tp.blog.domain.configuration.repository.TagRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author tanghao
 * @date 2022/8/8
 */
@Service
public class TagService {

    @Resource
    private TagRepository tagRepository;

    /**
     * 文章标签关系
     *
     * @param articleAgg 文章聚合
     */
    public void articleSync(ArticleAgg articleAgg) {
        tagRepository.articleSync(articleAgg);
    }
}
